package com.ruoyi.blog.domain.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.ruoyi.blog.domain.BlogLabel;
import com.ruoyi.common.annotation.ExcelDictFormat;
import com.ruoyi.common.convert.ExcelDictConvert;
import lombok.Data;
import java.util.Date;
import java.util.List;


/**
 * 博客文章视图对象 blog_article
 *
 * @author ruoyi
 * @date 2023-10-01
 */
@Data
@ExcelIgnoreUnannotated
public class BlogArticleVo {

    private static final long serialVersionUID = 1L;

    /**
     * 博客文章id
     */
    @ExcelProperty(value = "博客文章id")
    private String articleId;

    /**
     * 博客分类id
     */
    @ExcelProperty(value = "博客分类id")
    private Long categoryId;

    /**
     * 分类名称
     */
    private String categoryName;

    /**
     * 博客文章标题
     */
    @ExcelProperty(value = "博客文章标题")
    private String title;

    /**
     * 博客正文
     */
    @ExcelProperty(value = "博客正文")
    private String context;

    /**
     * 是否置顶
     */
    @ExcelProperty(value = "是否置顶", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "sys_yes_no")
    private Integer topping;

    /**
     * 浏览量
     */
    @ExcelProperty(value = "浏览量")
    private Long browse;

    /**
     * 是否显示
     */
    @ExcelProperty(value = "是否显示", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "sys_show_hide")
    private Integer isShow;


    /**
     * 创建者
     */
    @ExcelProperty(value = "创建者")
    private String createBy;

    /**
     * 创建时间
     */
    @ExcelProperty(value = "创建时间")
    private Date createTime;

    /**
     * 更新者
     */
    @ExcelProperty(value = "更新者")
    private String updateBy;

    /**
     * 更新时间
     */
    @ExcelProperty(value = "更新时间")
    private Date updateTime;

    /**
     * 标签id
     */
    private List<Long> labelIds;

    /**
     * 标签id
     */
    private List<BlogLabelVo> labels;

}
